-- GENERATED SPELL FOR [Thundering Invader] --


function spell0_14462(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(23114,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14462', 2279, 1)
end

function spell1_14462(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14462', 2275, 1)
end

function Sorts_14462(pUnit, Event)
local choix_sorts_14462 = math.random(0, 1)
if choix_sorts_14462 == 0 then
pUnit:RegisterEvent('spell0_14462', 1, 1)
end
if choix_sorts_14462 == 1 then
pUnit:RegisterEvent('spell1_14462', 1, 1)
end
end

function mob14462_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14462', math.random(1500, 3000), 1)
end

function mob14462_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14462_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14462_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14462, 1, 'mob14462_Action')
RegisterUnitEvent(14462, 2, 'mob14462_Leave')
RegisterUnitEvent(14462, 3, 'mob14462_Kill')
RegisterUnitEvent(14462, 4, 'mob14462_Die')
